/*
 * Copyright 2010 Groupware.cc All right reserved. This software is the confidential and proprietary information of
 * Groupware.cc ("Confidential Information"). You shall not disclose such Confidential Information and shall use it only
 * in accordance with the terms of the license agreement you entered into with Groupware.cc.
 */
package com.rome.syncml.exception;

import com.rome.syncml.constant.ErrorCode;

/**
 * 类AuthenticationException.java的实现描述：TODO 类实现描述
 * 
 * @author rosebible 2011-8-23 上午11:30:28
 */
public class RegisterException extends Exception {

    private static final long serialVersionUID = -5707627036883869954L;

    private ErrorCode         errorCode;

    public RegisterException(Throwable cause, ErrorCode errorCode){
        super(cause);
        this.errorCode = errorCode;
    }

    public RegisterException(String message, Throwable cause){
        super(message, cause);
    }

    public RegisterException(String message, ErrorCode errorCode){
        super(message);
        this.errorCode = errorCode;
    }

    public RegisterException(String message, Throwable cause, ErrorCode errorCode){
        super(message, cause);
        this.errorCode = errorCode;
    }

    public ErrorCode getErrorCode() {
        return errorCode;
    }

}
